home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3c / fp_class.z / fp_class
Encoding:
Text File  |  1998-10-20  |  3.7 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ffffpppp____ccccllllaaaassssssss((((3333CCCC))))                                                      ffffpppp____ccccllllaaaassssssss((((3333CCCC))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _ffff_pppp______cccc_llll_aaaa_ssss_ssss, _ffff_pppp______cccc_llll_aaaa_ssss_ssss______dddd, _ffff_pppp______cccc_llll_aaaa_ssss_ssss______ffff - classes of IEEE floating-point values
  10.  
  11.      _ffff_pppp______cccc_llll_aaaa_ssss_ssss______llll - classes of long double floating-point values
  12.  
  13. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ffff_pppp______cccc_llll_aaaa_ssss_ssss_...._hhhh_>>>>
  15.  
  16.      _iiii_nnnn_tttt _ffff_pppp______cccc_llll_aaaa_ssss_ssss______dddd_((((_dddd_oooo_uuuu_bbbb_llll_eeee _xxxx_))))_;;;;
  17.  
  18.      _iiii_nnnn_tttt _ffff_pppp______cccc_llll_aaaa_ssss_ssss______ffff_((((_ffff_llll_oooo_aaaa_tttt _xxxx_))))_;;;;
  19.  
  20.      _iiii_nnnn_tttt _ffff_pppp______cccc_llll_aaaa_ssss_ssss______llll_((((_llll_oooo_nnnn_gggg _dddd_oooo_uuuu_bbbb_llll_eeee _xxxx_))))_;;;;
  21.  
  22. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  23.      (Note that the long double routines are only valid for the MIPSpro
  24.      compilers.)  Long double function fp_class_l has been renamed to be
  25.      compliant with the ANSI-C standard, however to be backward compatible, it
  26.      may still be called with the name fp_class_q.
  27.  
  28.      These routines are used to determine the class of IEEE or long double
  29.      floating-point values.  They return one of the constants in the file
  30.      _<<<<_ffff_pppp______cccc_llll_aaaa_ssss_ssss_...._hhhh_>>>> and never cause an exception even for signaling NaN's.
  31.      These routines are to implement the recommended function class(_x) in the
  32.      appendix of the IEEE 754-1985 standard for binary floating-point
  33.      arithmetic.
  34.  
  35.      The constants in _<<<<_ffff_pppp______cccc_llll_aaaa_ssss_ssss_...._hhhh_>>>> refer to the following classes of values:
  36.  
  37.      Constant       Class
  38.      FP_SNAN        Signaling NaN (Not-a-Number)
  39.      FP_QNAN        Quiet NaN (Not-a-Number)
  40.      FP_POS_INF     +oo (positive infinity)
  41.      FP_NEG_INF     -oo (negative infinity)
  42.      FP_POS_NORM    positive normalized non-zero
  43.      FP_NEG_NORM    negative normalized non-zero
  44.      FP_POS_DENORM  positive denormalized
  45.      FP_NEG_DENORM  negative denormalized
  46.      FP_POS_ZERO    +0.0 (positive zero)
  47.      FP_NEG_ZERO    -0.0 (negative zero)
  48.  
  49.      Note that these functions are distinct from the SVR4 function _ffff_pppp_cccc_llll_aaaa_ssss_ssss
  50.      (see _iiii_ssss_nnnn_aaaa_nnnn(3C)).
  51.  
  52. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  53.      _iiii_ssss_nnnn_aaaa_nnnn(3C).
  54.      ANSI/IEEE Std 754-1985, IEEE Standard for Binary Floating- Point
  55.      Arithmetic
  56.  
  57.      In the case of long doubles, non-zero numbers less than 2**-916 in
  58.      absolute value are classified as denormalized, since one of the numbers
  59.      used in their representation may be a denormal double.
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.